/*
@Time: 2025/9/23 03:48
@Author: Leslie
@Function: 图片上传控制层
*/

package controller

import (
	"admin_api/api/service"
	"github.com/gin-gonic/gin"
)

// Upload 单图片上传
// @Summary 单图片上传接口
// @Description 单图片上传接口
// @BasePath /api
// @Produce json
// @Accept multipart/form-data
// @Param file formData file true "file"
// @Success 200 {object} result.Result
// @Router /upload [post]
func Upload(c *gin.Context) {
	service.UploadService().Upload(c)
}
